package kin.manager.system;

import java.util.LinkedHashMap;

public interface XtypeManager {
	public StringBuilder list(String label,String name, String parentClassName,
			String currentClassName, int pid);

	public StringBuilder treecombo(String label, String name, boolean editor,
			String comboName, String targetClass);

	public StringBuilder boxselect(int pid, String parentClassName,
			String currentClassName);

	public StringBuilder combo(String label, String fieldName, boolean allowBlank, int sort,
			boolean iscolumn, boolean editable,
			boolean isEnum, String targetName, String comboName,
			String cascadeTarget, LinkedHashMap<String, Object> targetWhere,
			LinkedHashMap<String, Object> CastCaseTargetWhere);

	public StringBuilder textfield(String label,String name, int minLength, int maxLength,
			boolean allowBlank, String vtype, int sort, 
			boolean hidden);

	public StringBuilder ckeditorfield(String label, String name, boolean allowBlank,
			int sort);

	public StringBuilder datefield(String label,String name, boolean allowBlank,
			 int sort, String format, boolean hidden,
			boolean isColumn);

	public StringBuilder checkbox(String label, String name, int sort, boolean hidden);

	public StringBuilder numberfield(String label, String name, boolean allowBlank,
			long min, long max, int sort, boolean hidden);

	public StringBuilder checkboxgroup();

	/**
	 * 
	 * @param label
	 * @param action
	 * @param url
	 * @param targetName
	 * @param method
	 * @return
	 */
	public StringBuilder button(String label, String action, String url,
			String targetName, String method);

	public StringBuilder actioncolumn(String[] item);
}
